import request from '@/utils/request'

// 查找待处理:type 1待处理 2已处理 3我发起
export function findPendingTaskList(data) {
  return request.get(`/asset/process/findPending`,{params:data})
}

// 获取流程模板列表
export function getProcessTemplateList() {
  return request.get('/process/template/list')
}

//审核
export function approveProcess(data) {
  return request.post(`/asset/process/approve`,data)
}

//撤销申请 revokeApprove
export function revokeApprove(processId) {
  return request.get(`/asset/process/revoke?processId=${processId}`)
}
